﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Dissemination.MVC.ViewModels.ProgramViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<asp:Literal runat="server" Text="<%$ Resources:Literals, ApplicationTitle%>" /> &middot; Programmes management &middot; <%= Model.Program.ProgramName %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="BreadcrumbContent" runat="server">
    <%= Html.ActionLink("Programmes management", "Index") %> &gt; <%= Model.Program.ProgramName%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="edit_own">
        <%= Html.ActionLink("Edit programme details", "Edit", new { id=Model.Program.ProgramID }) %></div>
    <h1>
        <%= Model.Program.ProgramName%></h1>
    <fieldset>
        <legend>Target Areas</legend>
        <ul class="elements-list">
            <li class="first">
                <div class="cell110 flota">
                    Code</div>
                <div class="cell350 flota">
                    Center</div>
                <div class="cell110 flota_der">
                    Actions</div>
            </li>
            <% foreach (var item in Model.SortedTargetAreas)
               { %>
            <li>
                <div class="cell110 flota lista_link">
                    <% =Html.Encode(item.TargetAreaCode)%>
                </div>
                <div class="cell450 flota lista_link">
                    <% =Html.Encode(item.TargetAreaCenter)%>
                </div>
                <div class="enlaces flota_der">
                    <%= Html.ActionLink("ENTER", "Details", "TargetArea", new { id = item.TargetAreaID, programID = Model.Program.ProgramID }, null)%>
                    <%= Html.ActionLink("REPORTER AREA", "TargetArea", "ReporterManager", new { id = item.TargetAreaID }, null)%>
                    <%= Html.ActionLink("Edit", "Edit", "TargetArea", new { id = item.TargetAreaID, programID = Model.Program.ProgramID }, null)%>
                </div>
            </li>
            <% } %>
        </ul>
        <p class="enlaces">
            <%= Html.ActionLink("Create new Target Area", "Create", "TargetArea", new { programID = Model.Program.ProgramID }, null)%>
        </p>
    </fieldset>
    <fieldset>
        <legend>Surveys</legend>
        <ul class="survey_list elements-list">
            <% foreach (var survey in Model.Program.Surveys)
               {%>
            <li>
                <div class="cell110 flota">
                    <% =Html.Encode(survey.SurveyOrdinal)%></div>
                <div class="cell450 flota">
                      Survey <%= Html.Encode(survey.SurveyOrdinal) + " - " + Html.Encode(survey.SurveyYear) + " - " + Html.Encode(survey.SurveyPeriod) %>
                    
                    </div>
                <div class="enlaces flota_der">
                    <%= Html.ActionLink("Edit", "Edit", "Survey", new { programID = Model.Program.ProgramID, Id = survey.SurveyID }, null)%>
                </div>
            </li>
            <% }%>
        </ul>
        <p class="enlaces">
            <%= Html.ActionLink("Activate survey", "Create", "Survey", new { Model.Program.ProgramID }, null) %>
        </p>
    </fieldset>
    <div class="navigation">
        <p>
            <%= Html.ActionLink("Back to programmes list", "Index") %>
        </p>
        <p class="flota">
            <span class="flota">Reports: </span>
            <%= Html.ActionLink("TA Reporters (xls)", "Ta", new { id = Model.Program.ProgramID })%>
        </p>
        <p class="flota">
            <%= Html.ActionLink("Survey Activity", "Activity", new { id=Model.Program.ProgramID }) %>
        </p>
        <p class="flota">
            <%= Html.ActionLink("EOD Activity", "Eod", new { id=Model.Program.ProgramID }) %>
        </p>
        <p class="flota">
            <%= Html.ActionLink("EOD Seminar Participants", "Participants", new { id=Model.Program.ProgramID }) %>
        </p>
        <div class="limpia">
        </div>
    </div>
</asp:Content>
